class Scence2 extends Scence{
	public constructor() {
		super();
	}
	protected OnAdd(){
		this.init();
	}
	private sy
	private init(){
		let jx1:egret.TextField=new egret.TextField();
        jx1.text="第二个界面";
        jx1.border=true;
        jx1.borderColor=0xff0000;
        jx1.width=400;
        jx1.height=50;
        jx1.size=50;
        jx1.x=150;
        jx1.y=200;
        this.addChild(jx1);

		let jx2:egret.TextField=new egret.TextField();
        jx2.text="跳到第一个界面";
        jx2.border=true;
        jx2.borderColor=0xff0000;
        jx2.width=400;
        jx2.height=50;
        jx2.size=50;
        jx2.x=120;
        jx2.y=400;
        this.addChild(jx2);
        jx2.touchEnabled=true;
        jx2.addEventListener(egret.TouchEvent.TOUCH_TAP,this.myfunction1,this)
		
		let sy = RES.getRes('music3_mp3');
		sy.play(0,0);	
	//	sy.stop();
		this.sy=sy
	}
	private myfunction1(){
		
       
	    let s1:Scence1 = new Scence1();
        Guanli_Scence.get().changeScene(s1);
		this.sy.stop();
     }

	protected OnRem(){
	
	}
}